<template>
  <div class="app" id="bu91">
    <merchantHeader />
    <div class="back">
      <div class="con">
        <div class="pxes"></div>
        <div class="listneo">
          <businessL />
          <div class="conres">
            <div class="ra">
              <h3>经营总览</h3>
            </div>
            <div class="yuansdj">
              <div class="shejh">
                <div>经营计划</div>
                <div style="color:blue" @click="dialogVisible = true">设置经营目标</div>
              </div>
              <div class="wdmewdefme">
                <div class="mubiao">
                  <div>
                    <el-progress type="circle" :color="colors" :percentage="percentage"></el-progress>
                  </div>
                  <div class="wnwe_wdnn">
                    <div class="ee_q">
                      <h5>本月销售情况</h5>
                    </div>
                    <div class="one_mw">
                      <div class="toefmn_wk">
                        <span>目标（元）</span>
                        <span class="ene">54115</span>
                      </div>
                      <div class="toefmn_wk">
                        <span>已完成（元）</span>
                        <span class="ene">54115</span>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="mubiao">
                  <div>
                    <el-progress type="circle" :color="colors" :percentage="percentage1"></el-progress>
                  </div>
                  <div class="wnwe_wdnn">
                    <div class="ee_q">
                      <h5>全年销售情况</h5>
                    </div>
                    <div class="one_mw">
                      <div class="toefmn_wk">
                        <span>目标（元）</span>
                        <span class="ene">54115</span>
                      </div>
                      <div class="toefmn_wk">
                        <span>已完成（元）</span>
                        <span class="ene">54115</span>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <div class="jaoyishuj wmrwmnpn">
                <div class="top_o2">交易数据</div>
                <div class="ower_to">
                  <div class="hekome1">
                    <h4>订单金额（元）</h4>
                    <h4>00</h4>
                    <p>较前一天：0.00</p>
                  </div>
                  <div class="hekome2">
                    <h4>下单买家数</h4>
                    <h4>00</h4>
                    <p>较前一天：0.00</p>
                  </div>
                  <div class="hekome3">
                    <h4>订单数</h4>
                    <h4>00</h4>
                    <p>较前一天：0.00</p>
                  </div>
                  <div class="hekome4">
                    <h4>支付转化率</h4>
                    <h4>00</h4>
                    <p>较前一天：0.00</p>
                  </div>
                  <div class="hekome5">
                    <h4>单客单价（订单金额/订单数）</h4>
                    <h4>00</h4>
                    <p>较前一天：0.00</p>
                  </div>
                </div>
              </div>
              <div class="jaoyishuj errror">
                <div class="top_o2">商品数据</div>
                <div class="ower_to">
                  <div class="hekome1">
                    <h4>商品访客数</h4>
                    <h4>00</h4>
                    <p>较前一天：0.00</p>
                  </div>
                  <div class="hekome1">
                    <h4>商品浏览量</h4>
                    <h4>00</h4>
                    <p>较前一天：0.00</p>
                  </div>
                  <div class="hekome1">
                    <h4>商品订单件数</h4>
                    <h4>00</h4>
                    <p>较前一天：0.00</p>
                  </div>
                  <div class="hekome2">
                    <h4>被访问商品数</h4>
                    <h4>00</h4>
                    <p>较前一天：0.00</p>
                  </div>
                </div>
              </div>
              <div class="jaoyishuj errror">
                <div class="top_o2">服务数据</div>
                <div class="ower_to">
                  <div class="hekome1">
                    <h4>成功退款金额（元）</h4>
                    <h4>00</h4>
                    <p>较前一天：0.00</p>
                  </div>
                  <div class="hekome1">
                    <h4>成功退款订单数</h4>
                    <h4>00</h4>
                    <p>较前一天：0.00</p>
                  </div>
                  <div class="hekome1">
                    <h4>退款率</h4>
                    <h4>00</h4>
                    <p>较前一天：0.00</p>
                  </div>
                  <div class="hekome2">
                    <h4>平均退款速度</h4>
                    <h4>00</h4>
                    <p>较前一天：0.00</p>
                  </div>
                </div>
              </div>
            </div>
            <businessF />
          </div>
        </div>
      </div>
    </div>
    <el-dialog :visible.sync="dialogVisible" width="600px" :before-close="handleClose">
      <div class="lheds">提示</div>
      <div style="width:80%;margin:10px auto">
        <el-row>
          <el-col :span="8" style="line-height:28px">批量设置提升幅度</el-col>
          <el-col :span="8"><el-input size="mini"></el-input></el-col>
          <el-col :span="8"><el-button size="mini">提交</el-button></el-col>
        </el-row>
      </div>
      <div style="width:80%;margin:0 auto">
        <el-table
          :data="tableData"
          height=300px
          border
          style="width: 100%">
          <el-table-column
            prop="date"
            label="月份"
            >
          </el-table-column>
          <el-table-column
            prop="name"
            label="2018年销售额"
            >
          </el-table-column>
          <el-table-column
            prop="address"
            label="2019年销售额">
            <template slot-scope="scope">
              <el-input size="mini" v-model="scope.row.address" style="width: 100px" class="inputClass"></el-input>
            </template>
          </el-table-column>
        </el-table>
      </div>
      <el-button
        style="margin: 10px auto;display: block;"
        type="danger"
        size="small"
        @click="dialogVisible = false"
      >确 定</el-button>
      <div style="height:15px"></div>
    </el-dialog>
    <Footer />
  </div>
</template>
<script>
import merchantHeader from "@/components/merchantHeader";
import Footer from "@/components/Footer";
import businessL from "@/components/businessL";
import businessF from "@/components/businessF";
export default {
  components: {
    merchantHeader,
    Footer,
    businessL,
    businessF
  },
  data() {
    return {
      colors: "#f56c6c",
      percentage: 88,
      percentage1: 22,
      dialogVisible: false,
      tableData: [{
          date: '1',
          name: '0.00',
          address: ''
        }, {
          date: '2',
          name: '0.00',
          address: ''
        }, {
          date: '3',
          name: '0.00',
          address: ''
        }, {
          date: '4',
          name: '0.00',
          address: ''
        },{
          date: '5',
          name: '0.00',
          address: ''
        }, {
          date: '6',
          name: '0.00',
          address: ''
        }, {
          date: '7',
          name: '0.00',
          address: ''
        }, {
          date: '8',
          name: '0.00',
          address: ''
        },{
          date: '9',
          name: '0.00',
          address: ''
        }, {
          date: '10',
          name: '0.00',
          address: ''
        }, {
          date: '11',
          name: '0.00',
          address: ''
        }, {
          date: '12',
          name: '0.00',
          address: ''
        },
        
        ]
    };
  },
  methods: {
    handleClose(done) {
      this.$confirm("确认关闭？")
        .then(_ => {
          done();
        })
        .catch(_ => {});
    }
  }
};
</script>
<style lang="stylus">
#bu91 /deep/ .ist_l .ist_c li:nth-child(1) {
  background-color: #ff9381;
  width: 126px;
  height: 50px;
  display: block;
}

#bu91 {
  .back {
    background-color: #f06048;
  }

  .pxes {
    height: 15px;
  }

  .back .con {
    width: 1200px;
    margin: 0 auto;
    background-color: #eee;
  }

  .listneo {
    width: 1161px;
    margin: 0px auto;
    display: flex;
    justify-content: space-between;
  }

  .conres {
    width: 902px;
    border-radius: 6px;
    background-color: #fff;
  }

  .conres .ra h3 {
    font-size: 20px;
    color: #f06048;
    padding-left: 14px;
    border-bottom: 1px solid #cecece;
    margin-top: 15px;
    padding-bottom: 10px;
  }

  .shejh {
    display: flex;
    margin-left: 20px;
    margin-top: 15px;
    line-height: 20px;
  }

  .shejh div:nth-child(1) {
    font-size: 20px;
  }

  .shejh div:nth-child(2) {
    font-size: 14px;
    margin-left: 40px;
  }

  .wdmewdefme {
    display: flex;
  }

  .mubiao {
    display: flex;
    margin-left: 20px;
    margin-top: 40px;
  }

  .toefmn_wk {
    margin-right: 12px;
  }

  .toefmn_wk span {
    display: block;
  }

  .toefmn_wk .ene {
    color: #f06048;
  }

  .one_mw {
    display: flex;
  }

  .wnwe_wdnn .ee_q {
    margin-top: 20px;
  }

  .wnwe_wdnn .ee_q h5 {
    font-size: 18px;
  }

  .wnwe_wdnn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    width: 300px;
  }

  .top_o2 {
    font-size: 18px;
    line-height: 20px;
    margin-left: 20px;
    margin-top: 25px;
  }

  .ower_to {
    width: 873px;
    height: 141px;
    border: solid 1px #a0a0a0;
    margin: 10px auto;
    display: flex;
    text-align: center;
    line-height: 45px;
  }

  .ower_to h4 {
    font-size: 18px;
  }

  .jaoyishuj {
    margin-bottom: 35px;
  }

  .wmrwmnpn .hekome1 {
    width: 158px;
    border-right: 1px solid #a0a0a0;
  }

  .wmrwmnpn .hekome2 {
    width: 142px;
    border-right: 1px solid #a0a0a0;
  }

  .wmrwmnpn .hekome3 {
    width: 138px;
    border-right: 1px solid #a0a0a0;
  }

  .wmrwmnpn .hekome4 {
    width: 138px;
    border-right: 1px solid #a0a0a0;
  }

  .errror .hekome1 {
    width: 25%;
    border-right: 1px solid #a0a0a0;
  }

  .hekome2 {
    text-align: center;
    margin-left: 35px;
  }

  .hekome5 {
    text-align: center;
    margin-left: 10px;
  }

  .el-dialog__header {
    padding: 0px !important;
  }

  .el-dialog__body {
    padding: 0px !important;
  }

  .lheds {
    width: 100%;
    height: 60px;
    background-color: rgb(240, 96, 72);
    color: white;
    text-align: center;
    line-height: 60px;
    font-size: 24px;
  }
  .el-table td{
    padding :0px
  }
}
</style>